package com.hl.toolkit.server.tycoin.user.slaveentity;
// Generated 2017-5-20 22:33:23 by Hibernate Tools 4.0.0.Final

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.tycoin.common.entity.AbstractEntity;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

@Entity
@Table(name="tycoin_user")
@DynamicUpdate
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
 public class TycoinUser extends AbstractEntity implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7638321713707710338L;




//
//
//	@GeneratedValue(strategy=GenerationType.IDENTITY)
//	@Column(name="id")
//	private long id;
//
//



	@Column(name = "username")
	private String username;//用户名
	
	@Column(name = "mobile")
	private String mobile;//手机号
	
	@Column(name = "email")
	private String email;//邮箱
	
	@Column(name = "password")
	private String password;//密码
	
	@Column(name = "salt")
	private String salt;//加盐
	
 	@Column(name = "level_id")
	private int levelId;//等级
 	
 	@Column(name = "integral"  ,columnDefinition="INT default 0")
  	private int integral;//积分
	
 	@Column(name = "addip")
	private String addip;//注册ip
	
	@Column(name = "realname")
	private String realname;//真是姓名
	
	@Column(name = "nickname")
	private String nickname;//昵称
	
	@Column(name = "avatar")
	private String avatar;//头像
	
	@Column(name = "qq")
	private String qq;//QQ
	
	@Column(name = "weixin")
	private String weixin;//微信
	
  	
	@Column(name = "birthyear")
	private short birthyear;//生日年
	
	@Column(name = "birthmonth")
	private int birthmonth;//生日月
	
	@Column(name = "birthday")
	private int birthday;//生日天
	
	 
 
 	@Column(name = "idcard")
	private String idcard;//身份证
 	
 	


	@Column(name = "sex")
  	private int sex;//性别,0女，1男
  	
	@Column(name = "grade" ,columnDefinition="INT default 0")
	private int grade;//等级
	
	@Column(name = "security_level" ,columnDefinition="INT default 0")
	private int securityLevel;//安全等级
	   
  	
	@Column(name = "is_black")
	private int isBlack;//是否拉黑
	
 	@Column(name = "logintime")
	private Integer logintime;
	
 	@Column(name = "lastloginip")
	private String lastloginip;
	
	@Column(name = "payment_pwd")
	private String paymentPwd;
 	
	@Column(name = "is_realname"  ,columnDefinition="INT default 0")
	private Integer isRealname;//是否实名
	
	
	@Column(name = "is_email"  ,columnDefinition="INT default 0")
	private Integer isEmail;//是否实名
	
	
	
	@Column(name = "date_of_birth" )
	private String dateOfbirth;
 	
	
	@Column(name = "status" )
	private String status;


	private  String  card_type;
	private  String address;
	private  String country;
	private  String job;

	private String access_token;
	
	
	
	
	

	public TycoinUser() {
		super();
	}


	public TycoinUser(String mobile, String email, String password, String salt, int levelId, String addip,
			String realname, String nickname, String avatar, String qq, String weixin, short birthyear, int birthmonth,
			int birthday, String idcard, int sex, int grade, int isBlack, Integer logintime, String lastloginip,
			String paymentPwd, Integer isRealname, String dateOfbirth, String status,int integral,int securityLevel,int isEmail) {
		super();
		this.mobile = mobile;
		this.email = email;
		this.password = password;
		this.salt = salt;
		this.levelId = levelId;
		this.addip = addip;
		this.realname = realname;
		this.nickname = nickname;
		this.avatar = avatar;
		this.qq = qq;
		this.weixin = weixin;
		this.birthyear = birthyear;
		this.birthmonth = birthmonth;
		this.birthday = birthday;
		this.idcard = idcard;
		this.sex = sex;
		this.grade = grade;
		this.isBlack = isBlack;
		this.logintime = logintime;
		this.lastloginip = lastloginip;
		this.paymentPwd = paymentPwd;
		this.isRealname = isRealname;
		this.dateOfbirth = dateOfbirth;
		this.status = status;
		this.integral=integral;
		this.securityLevel=securityLevel;
		this.isEmail=isEmail;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getMobile() {
		return mobile;
	}


	public void setMobile(String mobile) {
		this.mobile = mobile;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getSalt() {
		return salt;
	}


	public void setSalt(String salt) {
		this.salt = salt;
	}


	public int getLevelId() {
		return levelId;
	}


	public void setLevelId(int levelId) {
		this.levelId = levelId;
	}


	public String getAddip() {
		return addip;
	}


	public void setAddip(String addip) {
		this.addip = addip;
	}


	public String getRealname() {
		return realname;
	}


	public void setRealname(String realname) {
		this.realname = realname;
	}


	public String getNickname() {
		return nickname;
	}


	public void setNickname(String nickname) {
		this.nickname = nickname;
	}


	public String getAvatar() {
		return avatar;
	}


	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}


	public String getQq() {
		return qq;
	}


	public void setQq(String qq) {
		this.qq = qq;
	}


	public String getWeixin() {
		return weixin;
	}


	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}


	public String getAccess_token() {
		return access_token;
	}

	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}

	public short getBirthyear() {
		return birthyear;
	}


	public void setBirthyear(short birthyear) {
		this.birthyear = birthyear;
	}


	public int getBirthmonth() {
		return birthmonth;
	}


	public void setBirthmonth(int birthmonth) {
		this.birthmonth = birthmonth;
	}


	public int getBirthday() {
		return birthday;
	}


	public void setBirthday(int birthday) {
		this.birthday = birthday;
	}


	public String getIdcard() {
		return idcard;
	}


	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}


	public int getSex() {
		return sex;
	}


	public void setSex(int sex) {
		this.sex = sex;
	}


	public int getGrade() {
		return grade;
	}


	public void setGrade(int grade) {
		this.grade = grade;
	}


	public int getIsBlack() {
		return isBlack;
	}


	public void setIsBlack(int isBlack) {
		this.isBlack = isBlack;
	}


	public Integer getLogintime() {
		return logintime;
	}


	public void setLogintime(Integer logintime) {
		this.logintime = logintime;
	}


	public String getLastloginip() {
		return lastloginip;
	}


	public void setLastloginip(String lastloginip) {
		this.lastloginip = lastloginip;
	}


	public String getPaymentPwd() {
		return paymentPwd;
	}


	public void setPaymentPwd(String paymentPwd) {
		this.paymentPwd = paymentPwd;
	}


	public Integer getIsRealname() {
		return isRealname;
	}


	public void setIsRealname(Integer isRealname) {
		this.isRealname = isRealname;
	}


	public String getDateOfbirth() {
		return dateOfbirth;
	}


	public void setDateOfbirth(String dateOfbirth) {
		this.dateOfbirth = dateOfbirth;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}
	

 	public int getIntegral() {
		return integral;
	}


	public void setIntegral(int integral) {
		this.integral = integral;
	}
   
 	public int getSecurityLevel() {
		return securityLevel;
	}


	public void setSecurityLevel(int securityLevel) {
		this.securityLevel = securityLevel;
	}



	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getCard_type() {
		return card_type;
	}

	public void setCard_type(String card_type) {
		this.card_type = card_type;
	}


	public Integer getIsEmail() {
		return isEmail;
	}


	public void setIsEmail(Integer isEmail) {
		this.isEmail = isEmail;
	}
	
	
}
